/*
 * 易族智汇（北京）科技有限公司 版权所有。
 * 未经许可，您不得使用此文件。
 * 官方地址：www.javamall.com.cn
 */
package com.enation.app.javashop.core.client.feignimpl.trade;

import com.enation.app.javashop.client.trade.TradeClient;
import com.enation.app.javashop.core.client.fallback.trade.TradeClientFallbackFactory;
import com.enation.app.javashop.core.handler.FeignConfiguration;
import com.enation.app.javashop.model.security.ScanModuleDTO;
import com.enation.app.javashop.model.security.ScanResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
*
* @description: 交易客户端
* @author: shen
* @create: 2020/1/2 16:41
* @version:1.0
* @since:7.1.5
**/
@FeignClient(name = "trade-service", fallbackFactory = TradeClientFallbackFactory.class,configuration = {FeignConfiguration.class})
public interface TradeClientFeignImpl extends TradeClient {

    /**
     * 交易数据签名扫描
     * @return
     */
    @Override
    @RequestMapping(value = "/client/trade/scan-module",method = RequestMethod.POST)
    ScanResult scanModule(@RequestBody ScanModuleDTO scanModuleDTO);

    /**
     * 交易数据重新签名
     */
    @Override
    @RequestMapping(value = "/client/trade/resign",method = RequestMethod.GET)
    void reSign();

    /**
     * 修复交易数据
     * @param tradeId
     */
    @Override
    @RequestMapping(value = "/client/trade/repair/{trade_id}",method = RequestMethod.GET)
    void repair(@PathVariable("trade_id")Long tradeId);

}
